{include file="pub_header.htm"}
<div class="out_table">
<table width="100%" cellpadding="6" cellspacing="6" border="0" align="center" class="frame_table">
  <tr>
    <td width="20%" align="center" valign="top" bgcolor="#EEEEEE">
      {include file="pub_submenu.htm"}
    </td>
    <td width="80%" align="center" valign="top" bgcolor="#FFFFFF">

      {if $get.ope == "detail"}
      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
        <tr>
          <td align="left" nowrap>&nbsp;
            <a href="{$control_admin}" target="_self" class="current_place">管理首页</a>
            &raquo; <a href="{$control_admin}?act=pm_in" target="_self" class="current_place">收件箱</a>
          </td>
          <td align="right" nowrap>
            [
            <a href="{$control_admin}?act=pm_in" target="_self" class="current_place">信息列表</a>
            ]
          </td>
        </tr>
      </table>
      </div>

      <div class="space"></div>
      <div class="right_table">
      <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
        <tr class="block_header">
          <td colspan="2" align="left">查看短信</td>
        </tr>
        <tr class="block_title">
          <td colspan="2" align="left">{$pm_in_list.subject|str_entag:"space"}</td>
        </tr>
        <tr>
          <td width="20%" align="right" class="block_left">来自</td>
          <td width="80%" align="left" valign="top" class="block_right">
            {if $pm_in_list.fid == "0"}
              系统发送
            {else}
              {$pm_in_list.m_username}
            {/if}
          </td>
        </tr>
        <tr>
          <td align="right" class="block_left">发送到</td>
          <td align="left" valign="top" class="block_right">
            {$member.username}
          </td>
        </tr>
        <tr>
          <td align="right" class="block_left">时间</td>
          <td align="left" valign="top" class="block_right">
            {$pm_in_list.time|format_date:"%Y-%m-%d %H:%M:%S"}
          </td>
        </tr>
        <tr>
          <td align="right" class="block_left">内容</td>
          <td align="left" valign="top" class="block_right">
            {$pm_in_list.content|str_entag:'space,br'}</textarea>
          </td>
        </tr>
        <tr>
          <td colspan="2" align="right" class="block_footer">
            <a href="{$control_admin}?act=pm_in&pag={$page}" target="_self">[返回]</a>
            <a href="{$control_admin}?act=pm_send&ope=reply&piid={$pm_in_list.id}&pag={$page}" target="_self">[回复]</a>
            <a href="{$control_admin}?act=pm_in&ope=del&piid={$pm_in_list.id}&pag={$page}" target="_self" onClick="return confirm('真的要删除本条短信?')">[删除]</a>
          </td>
        </tr>
      </table>
      </div>
      {else}
      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
        <tr>
          <td align="left" nowrap>&nbsp;
            <a href="{$control_admin}" target="_self" class="current_place">管理首页</a>
            &raquo; <a href="{$control_admin}?act=pm_in" target="_self" class="current_place">收件箱</a>
          </td>
          <td align="right" nowrap>
            &nbsp;
          </td>
        </tr>
      </table>
      </div>

      <div class="space"></div>
      <div class="right_table">
      <form action="{$control_admin}?act=pm_in&ope=save" method="post" name="pm_in" id="pm_in" enctype="multipart/form-data">
      <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
        <tr class="block_header">
          <td colspan="4" align="left">收件箱</td>
        </tr>
        <tr class="block_title">
          <td width="60%" nowrap>标题</td>
          <td width="20%" nowrap>来自</td>
          <td width="15%" nowrap>时间</td>
          <td width="5%" nowrap>删除</td>
        </tr>
        {foreach name=pm_in_list from=$pm_in_list item=pm_in_list}
        <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
          <td align="left" nowrap>
            {if $pm_in_list.if_read != 1}
            <b><a href="{$control_admin}?act=pm_in&ope=detail&piid={$pm_in_list.id}&pag={$page}" target="_self" title="{$pm_in_list.subject|str_entag:'space,br'}">{$pm_in_list.subject|str_cut:0:64|str_entag:"space,br"}</a></b>
            {else}
            <a href="{$control_admin}?act=pm_in&ope=detail&piid={$pm_in_list.id}&pag={$page}" target="_self" title="{$pm_in_list.subject|str_entag:'space,br'}">{$pm_in_list.subject|str_cut:0:64|str_entag:"space,br"}</a>
            {/if}
          </td>
          <td nowrap>
            {if $pm_in_list.fid == "0"}
              系统发送
            {else}
              {$pm_in_list.m_username}
            {/if}        </td>
          <td nowrap>{$pm_in_list.time|format_date:"%Y-%m-%d"}</td>
          <td nowrap><input type="checkbox" name="del[{$pm_in_list.id}]" value="{$pm_in_list.id}" class="checkbox"></td>
        </tr>
        {/foreach}
        <tr>
          <td colspan="7" align="center" class="block_footer">
            <input type="submit" value="确定" name="profile_submit" id="profile_submit" class="submit" onClick="return confirm('真的要删除所选短信?')">
          </td>
        </tr>
      </table>
      </form>
      <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center">
        <tr>
          <td align="right">
          {if $pagination.page_total > 1}
            <span class="pagination_post_list">
              <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
              <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><span class="pagelink_current_rate">{$pagination.page_current}</span>/{$pagination.page_total}</span>
              {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self">&laquo;</a></span>{/if}
              {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self">...</a></span>{/if}
              {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self">&#8249;</a></span>{/if}
              {foreach name=page_list from=$pagination.page_list item=page_list}
                {if $page_list.if_current == "1"}
                  <span class="pagelink_current" title="Current page{$page_list.page}">{$page_list.page}</span>
                {else}
                  <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self">{$page_list.page}</a></span>
                {/if}
              {/foreach}
              {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self">&#8250;</a></span>{/if}
              {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self">...</a></span>{/if}
              {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self">&raquo;</a></span>{/if}
              <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
              {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
              {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
              {foreach name=page_select from=$pagination.page_select item=page_select}
                {if $page_select.if_current == "1"}
                  <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
                {else}
                  <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
                {/if}
              {/foreach}
              {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
              {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
              </select>
            </span>
          {/if}
          </td>
        </tr>
      </table>
      </div>
      {/if}

    </td>
  </tr>
</table>
{include file="pub_footer.htm"}
